import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
const router = new Router({
    routes:[
        {
            path:'/',
            name:'index',
            component: ()=>import('../views/main.vue')
        },
        {
          path:'/comView',
          name:'comView',
          component: ()=>import('../views/comView/comView.vue')
        },
        {
          path:'/module',
          name:'module',
          component: ()=>import('../views/module/module.vue')
        },
        {
          path:'/apiView',
          name:'apiView',
          component: ()=>import('../views/apiView/apiView.vue')
        },
        {
          path:'/comCreate',
          name:'comCreate',
          component: ()=>import('../views/comCreate/comCreate.vue')
        },
        {
          path:'/studyModule',
          name:'studyModule',
          component: ()=>import('../views/studyModule/studyModule.vue')
        },
        {
          path:'/workUse',
          name:'workUse',
          component: ()=>import('../views/workUse/workUse.vue')
        },
        {
          path:'*',
          redirect: './',
        }
        
        

    ]
})
export default router
